package com.mldong.modules.sys.dto;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import javax.validation.constraints.*;
import com.mldong.validation.Groups;
/**
 * <p>
 * 通知公告
 * </p>
 *
 * @author mldong
 * @since 2022-10-23
 */
@Getter
@Setter
@TableName("sys_notice")
@ApiModel(value = "NoticeParam对象", description = "通知公告")
public class NoticeParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "通知公告ID", required = true)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @NotNull(message = "通知公告ID不能为空", groups = {Groups.Update.class})
    private Long id;

    @ApiModelProperty(value = "标题", required = true)
    @NotBlank(message = "标题不能为空")
    private String title;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "类型<sys_notice_type>", required = true)
    @NotNull(message = "类型<sys_notice_type>不能为空")
    private Integer type;

    @ApiModelProperty(value = "发布时间")
    private Date publishTime;

    @ApiModelProperty(value = "发布状态<sys_notice_state>")
    private Integer state;

    @ApiModelProperty(value = "扩展参数JSON")
    private String variable;


}
